package com.generator.dao.column;

import com.generator.entity.column.Column;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


@Mapper
@Component(value = "ColumnDao")
public interface ColumnDao {

    void addColumn(@Param("column")Column column);

    void delColumn(@Param("columnId")int columnId);

    void updateColumn(@Param("column")Column column);

    Column findColumnById(@Param("columnId")int columnId);

    List<Column> findAllColumns();
}
